package com.neuedu.His02.service.outpatientDoctorWorkStationService;

import com.neuedu.His02.entity.*;
import com.neuedu.His02.entity.diagnosisTemplate.DiagnosisTemplate;
import com.neuedu.His02.mapper.outpatientDoctorWorkStationMapper.OutpatientDiagnosisMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class OutpatientDiagnosisServerImpl implements OutpatientDiagnosisServer{
    @Resource
    private OutpatientDiagnosisMapper dao;

    @Override
    public List<Register> initPatients(User user) {
        return dao.initPatients(user);
    }

    @Override
    public MedicalRecord recordIsExist(Register register) {
        return dao.recordIsExist(register);
    }

    @Override
    public List<Register> searchByName(Register register) {
        return dao.searchByName(register);
    }

    @Override
    public List<Register> searchByNumber(Register register) {
        return dao.searchByNumber(register);
    }

    @Override
    public MedicalRecord getRecord(MedicalRecord medicalRecord) {
        return dao.getRecord(medicalRecord);
    }

    @Override
    public List<CheckApply> getCheckResult(MedicalRecord medicalRecord) {
        return dao.getCheckResult(medicalRecord);
    }

    @Override
    public List<CheckApply> getDealResult(MedicalRecord medicalRecord) {
        return dao.getDealResult(medicalRecord);
    }

    @Override
    public List<DiagnosisTemplate> getRecordTemplatePersonally(User user) {
        return dao.getRecordTemplatePersonally(user);
    }

    @Override
    public List<DiagnosisTemplate> getRecordTemplateByDepartment(User user) {
        return dao.getRecordTemplateByDepartment(user);
    }

    @Override
    public List<DiagnosisTemplate> getRecordTemplateByHospital() {
        return dao.getRecordTemplateByHospital();
    }

    @Override
    public void deleteRecordTemplate(DiagnosisTemplate diagnosisTemplate) {
        dao.deleteRecordTemplate(diagnosisTemplate);
    }
}
